Skip to contentSkip to conversation

pavucontrol: add x11 to REQUIRED_DISTRO_FEATURES

PATCH In review Changqing Li 2 participants 4 messages Feb 28 – Mar 2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pavucontrol: add x11 to REQUIRED_DISTRO_FEATURES

pavucontrol depends on gtkmm4, which require x11, so add x11 to REQUIRED_DISTRO_FEATURES for pavucontrol, refer [1]

[1] https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=aed20cd843fb00726d7c8da1aa19d238c2f9f195

---
 meta-oe/recipes-multimedia/pulseaudio/pavucontrol_6.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-multimedia/pulseaudio/pavucontrol_6.2.bb +1 -0
index b6b9a068a9..9e54f49dcb 100644
@@ -9,6 +9,7 @@ DEPENDS = "gtkmm4 pulseaudio json-glib"
 inherit meson features_check pkgconfig gettext
 
 ANY_OF_DISTRO_FEATURES = "opengl vulkan"
+REQUIRED_DISTRO_FEATURES = "x11"
 
 SRC_URI = "http://www.freedesktop.org/software/pulseaudio/${BPN}/${BP}.tar.xz"
 SRC_URI[sha256sum] = "e93a7836c7307dcbc989e95fc7ec0878322514c475fabd90e89ed52fd4f15d32"
Signature · 1 line
2.34.1
#1 lore raw

Hi,

I sent a fix that removed DISTRO_FEATURES = ā€œx11ā€ from gtkmm4 and pangomm-2.48, which fixed this issue for me locally. Have you seen these patches or do you know if there is a problem with this approach?

I ask because I never received any feedback on these patches.

Quoted 27 lines · Changqing Li

pavucontrol depends on gtkmm4, which require x11, so add x11 to REQUIRED_DISTRO_FEATURES for pavucontrol, refer [1]

[1] <https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=aed20cd843fb00726d7c8da1aa19d238c2f9f195>

Signed-off-by Changqing Li <[email protected] <mailto:[email protected]>>
---
 meta-oe/recipes-multimedia/pulseaudio/pavucontrol_6.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-multimedia/pulseaudio/pavucontrol_6.2.bb +1 -0
index b6b9a068a9..9e54f49dcb 100644
@@ -9,6 +9,7 @@ DEPENDS = "gtkmm4 pulseaudio json-glib"
 inherit meson features_check pkgconfig gettext
 
 ANY_OF_DISTRO_FEATURES = "opengl vulkan"
+REQUIRED_DISTRO_FEATURES = "x11"
 
 SRC_URI = 

"http://www.freedesktop.org/software/pulseaudio/${BPN}/${BP}.tar.xz <http://www.freedesktop.org/software/pulseaudio/$%7BBPN%7D/$%7BBP%7D.tar.xz>"
SRC_URI[sha256sum] =
"e93a7836c7307dcbc989e95fc7ec0878322514c475fabd90e89ed52fd4f15d32"
--
2.34.1

#2 lore raw
Quoted 7 lines · Markus Volk

**
*CAUTION: This email comes from a non Wind River email account!*
Do not click links or open attachments unless you recognize the sender and know the content is safe. Hi,

I sent a fix that removed DISTRO_FEATURES = ā€œx11ā€ from gtkmm4 and pangomm-2.48, which fixed this issue for me locally. Have you seen these patches or do you know if there is a problem with this approach?

Hi,

I had seen those patches, but it is send one month ago and not merged by upstream,  so I guess maybe it is not accepted by upstream since some reason?

And one of my question for those patches is "could we just remove remove x11 from REQUIRED_DISTRO_FEATURES for pangomm?".  I suppose we can only remove it since pangomm

not need it,  but I don't know how to check it.  Maybe upstream not accept the previous patch with similar reason?   So I resend this patch.

But if you can ensure that x11 is not needed by pangomm, I think your previous patch is better to fix the issue.

//changqing

Quoted 11 lines

I ask because I never received any feedback on these patches.

Quoted 7 lines · Changqing Li

pavucontrol depends on gtkmm4, which require x11, so add x11 to REQUIRED_DISTRO_FEATURES for pavucontrol, refer [1] [1] https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=aed20cd843fb00726d7c8da1aa19d238c2f9f195 <https://urldefense.com/v3/__https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=aed20cd843fb00726d7c8da1aa19d238c2f9f195__;!!AjveYdw8EvQ!eI02cHdx4niPW2r8eVZTIRqvx2WhR4SG4ESEtz82G0D1nHKPJD2FpHrrLKBc_tb6ts7--x75rBmtL5xgYDMScqs$> Signed-off-by: Changqing Li <[email protected]> --- meta-oe/recipes-multimedia/pulseaudio/pavucontrol_6.2.bb <https://urldefense.com/v3/__http://pavucontrol_6.2.bb__;!!AjveYdw8EvQ!eI02cHdx4niPW2r8eVZTIRqvx2WhR4SG4ESEtz82G0D1nHKPJD2FpHrrLKBc_tb6ts7--x75rBmtL5xgJ5Ry6ww$> | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-multimedia/pulseaudio/pavucontrol_6.2.bb <https://urldefense.com/v3/__http://pavucontrol_6.2.bb__;!!AjveYdw8EvQ!eI02cHdx4niPW2r8eVZTIRqvx2WhR4SG4ESEtz82G0D1nHKPJD2FpHrrLKBc_tb6ts7--x75rBmtL5xgJ5Ry6ww$> b/meta-oe/recipes-multimedia/pulseaudio/pavucontrol_6.2.bb <https://urldefense.com/v3/__http://pavucontrol_6.2.bb__;!!AjveYdw8EvQ!eI02cHdx4niPW2r8eVZTIRqvx2WhR4SG4ESEtz82G0D1nHKPJD2FpHrrLKBc_tb6ts7--x75rBmtL5xgJ5Ry6ww$> index b6b9a068a9..9e54f49dcb 100644 --- a/meta-oe/recipes-multimedia/pulseaudio/pavucontrol_6.2.bb <https://urldefense.com/v3/__http://pavucontrol_6.2.bb__;!!AjveYdw8EvQ!eI02cHdx4niPW2r8eVZTIRqvx2WhR4SG4ESEtz82G0D1nHKPJD2FpHrrLKBc_tb6ts7--x75rBmtL5xgJ5Ry6ww$>
+++ b/meta-oe/recipes-multimedia/pulseaudio/pavucontrol_6.2.bb
<https://urldefense.com/v3/__http://pavucontrol_6.2.bb__;!!AjveYdw8EvQ!eI02cHdx4niPW2r8eVZTIRqvx2WhR4SG4ESEtz82G0D1nHKPJD2FpHrrLKBc_tb6ts7--x75rBmtL5xgJ5Ry6ww$>

(quoted diff) +0 -0
@@ -9,6 +9,7 @@ DEPENDS = "gtkmm4 pulseaudio json-glib" inherit meson 

features_check pkgconfig gettext ANY_OF_DISTRO_FEATURES = "opengl vulkan" +REQUIRED_DISTRO_FEATURES = "x11" SRC_URI = "http://www.freedesktop.org/software/pulseaudio/${BPN}/${BP}.tar.xz <https://urldefense.com/v3/__http://www.freedesktop.org/software/pulseaudio/$*7BBPN*7D/$*7BBP*7D.tar.xz__;JSUlJQ!!AjveYdw8EvQ!eI02cHdx4niPW2r8eVZTIRqvx2WhR4SG4ESEtz82G0D1nHKPJD2FpHrrLKBc_tb6ts7--x75rBmtL5xgQDs1EZk$>" SRC_URI[sha256sum] = "e93a7836c7307dcbc989e95fc7ec0878322514c475fabd90e89ed52fd4f15d32"

Signature · 1 line
2.34.1
#3 lore raw
Quoted 6 lines · Changqing Li

I suppose we can only remove it since pangomm

not need it, but I don't know how to check it. Maybe upstream not accept the previous patch with similar reason? So I resend this patch.

But if you can ensure that x11 is not needed by pangomm, I think your previous patch is better to fix the issue.

I can't ensure this but I did grep the pangomm code for usual suspects and also had a look at pango and cairo in oe-core which both can enable/disable x11 support depending on DISTRO_FEATURES and as far as I remember I also set up a build with DISTRO_FEATURES:remove = "x11" and verified that pavucontrol was still buildable.

I'm adding Khem Raj to the discussion. Maybe he can tell if there were any problems with the patches.